<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<div th:fragment="part">
    <link rel="stylesheet" href="../../css/postlist/zuiretiezi.css">
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
    <script type="text/javascript" src="../js/postlist/zuixinfabiao.js"></script>
    <script>
        $(function() {
            if (localStorage.getItem('select')) {
                $("#select option").eq(localStorage.getItem('select')).prop('selected', true);
            }

            $("#select").on('change', function() {
                localStorage.setItem('select', $('option:selected', this).index());
            });
        });

        window.onload=function () {
            $(".select").click(function f1() {
                var selectMes = $('#dgroup option:selected') .val();//选中的值
                $.get('/zmpost/zuzhizuire',{selectMes:selectMes},function (back) {

                });
            });
        }
    </script>
    <div id="content">
    <table id="adminTbody" class="table" th:width="1250">
        <tr class="table_header">
            <th>标题</th>
            <th>作者</th>
            <th>点赞</th>
            <th>收藏</th>
            <th>发表时间</th>
        </tr>
        <tr th:each="post,postListStat : ${resultList}" class="tbody" onmouseover="this.style.backgroundColor='lightslategray';" onmouseout="this.style.backgroundColor='#FFFFFF';">
            <td><a th:href="@{'/toMyPost?page=html/editor/lookPost_f&pid='+${post.pid}}" th:text="${post.ptitle}" style="color: black;text-decoration: none;"></a></td>
            <td th:text="${post.realname}"></td>
            <td th:text="${post.giveup}"></td>
            <td th:text="${post.collect}"></td>
            <td th:text="${post.ptime}"></td>
        </tr>
    </table>
    <div class="layui-card-body ">
        <div class="page">
            <div>
                <a class="num" href="###" id="firstPage">首页</a>
                <a class="prev" href="###" id="prePage">上一页</a>
                <span class="current" id="currentPage"></span>
                <a class="next" href="###"id="nextPage">下一页</a>
                <a class="num" href="###" id="lastPage">尾页</a>
                <a class="num" href="###" id="totalpage"></a>
                <a class="num"> <select  id="jumpWhere"> </select></a>
                <a href="###" id="jumpPage" onclick="jumpPage()">跳转</a>
                <a class="num" id="countsum"></a>
            </div>
        </div>
    </div>
    </div>
</div>
</body>
</html>